package com.stgl.service;

import com.stgl.dao.CampusDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class CampusService {
    @Autowired
    private CampusDao campusDao;

    public Map<String,Object>getCampusBycsid(String csid)
    {
        Map<String,Object>smap=new HashMap<String,Object>();
        List<Map<String,Object>>list1=campusDao.getCampusBycsid(csid);
        if(list1.size()>0){
            smap=list1.get(0);
        }
        return smap;
    }

    public int updateCampus(Map<String,Object>gmap)
    {
        return campusDao.updateCampus(gmap);
    }

}
